/*
 * Project: yygh-parent
 *
 * File Created at 2023/7/13
 *
 * 自定义时间格式代替DATE标签：2023-07-13 19:36:19:36
 */

import okhttp3.*;
import sun.rmi.runtime.Log;

import java.io.IOException;

/**
 * @author 用户名
 * @Type aa.java
 * @Desc
 * @date 2023/7/13 19:36
 */
public class aa {
    public static void main(String[] args) {
        String url = "https://ug.baidu.com/mcp/pc/pcsearch";
        OkHttpClient client = new OkHttpClient();
        RequestBody requestBody = new FormBody.Builder()

                .build();
        Request request = new Request.Builder()
                .url(url)
                .post(requestBody)
                .build();
        Call call = client.newCall(request);
        call.enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
                System.out.println("fail");
            }
            @Override
            public void onResponse(Call call, Response response) throws IOException {
                System.out.println(response.body().string());
            }
        });

    }
}


/**
 * Revision history
 * -------------------------------------------------------------------------
 * <p>
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2023/7/13 用户名 create
 */ 
